
<%@ page pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<title>修改个人信息</title>

<js>
    <script type="text/javascript" src="${ctx}/assets/vendor/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="${ctx}/assets/scripts/editInfo.js"></script>
</js>

<css>
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/vendor/webuploader/webuploader.css">
</css>

<div class="panel panel-headline">
    <div class="panel-heading">
        <h3 class="panel-title">修改个人信息</h3>
    </div>
    <div class="panel-body">


        <c:if test="${not empty CURRENT_ACCOUNT.picHead}">
            <div class="col-md-3">
                <img src="${CURRENT_ACCOUNT.picHead}?imageView2/1/w/100/h/100" />
            </div>
        </c:if>

        <div class="col-md-6">
            <div id="uploader-demo">
                <!--用来存放item-->
                <div id="fileList" class="uploader-list"></div>
                <div id="filePicker">
                    选择图片
                </div>
            </div>



            <!-- 因为需要把图片上传到服务器，再由服务器将图片上传到七牛
                      enctype  必须为multipart/form-data
                       -->
            <form id="picHeadForm" class="pull-right" action="${ctx}/editInfo" method="post">
                <input id="picHeadUrl" type="hidden" name="picHeadUrl" />
                <input id="btnConfirm" disabled="disabled" class="btn btn-success" type="submit" value="确定" />
            </form>

        </div>


    </div>
</div>

